import java.io.File;

public class day_04_File_1 {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\Fairy\\Desktop\\读书小报.docx");
        System.out.println(file);

        String parent = "C:\\Users\\Fairy\\Desktop";
        String child = "读书小报.docx";
        File file2 = new File(parent, child);
        System.out.println(file2);

        File file3 = new File("C:\\Users\\Fairy\\Desktop");
        String selfURL = "读书小报.docx";
        File file4 = new File(file3, selfURL);
        System.out.println(file4);
    }
}
